package org.wd.db.jpa.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class StationInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private String code;
	private String name;
	private String location;
	private double latitude;
	private double longitude;
	private int numberOfTrains;

	public StationInfo() {
	}

	public StationInfo(String code, String name, String location, double latitude, double longitude, int numberOfTrains) {
		super();
		this.code = code;
		this.name = name;
		this.location = location;
		this.latitude = latitude;
		this.longitude = longitude;
		this.numberOfTrains = numberOfTrains;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public int getNumberOfTrains() {
		return numberOfTrains;
	}

	public void setNumberOfTrains(int numberOfTrains) {
		this.numberOfTrains = numberOfTrains;
	}

	public String toString() {
		return code + " " + name + " " + location + " " + latitude + " " + longitude + " " + numberOfTrains;
	}
}
